Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make template lint use node glob to ensure consistent lint results across OS #1959

Closed
wants to merge 95 commits into from

Conversation

Elyseum
Copy link
Contributor

@Elyseum Elyseum commented Oct 24, 2024

Description / Motivation

This PR updates the npm lint command to use the node glob pattern (instead of the OS glob) for scaffolded projects. This makes linting results more consistent across different OS (e.g. windows development machine vs linux build server).

See https://stackoverflow.com/questions/54165756/eslint-glob-is-not-considering-all-directories-recursively

This node glob was introduced silently in the JSS development scripts (see 786913d), but it never made its way to the scaffolding templates.

Testing Details

  • Unit Test Added
  • Manual Test/Other (Please elaborate)

I experienced this with an lint issue in my (customized) packages\create-sitecore-jss\src\templates\nextjs-sxa\src\Layout.tsx file. The lint error was detected on Windows (**/*.tsx matches direct children), but not on Ubuntu linux (**/*.tsx does NOT match direct children).
After forcing to node glob pattern, the lint issue was detected on both Windows AND (Ubuntu) linux.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@Elyseum Elyseum changed the title Make template lint use node glob to ensure consistent lint results Make template lint use node glob to ensure consistent lint results across OS Oct 24, 2024
illiakovalenko and others added 27 commits October 25, 2024 09:36
…Sitecore#1958)

* [XM Cloud][Angular] Navigation component link forces full page reload
* Updated Image, LinkList, Promo, Title components
* remove duplicate changelog entry

* add cdp page view component to send page view events

* minor update of imports

* update changelog

* some fixes - handle empty language, handle send event error;

* do not initialize csdk and send events if not in production mode

* add comment

Co-authored-by: Illia Kovalenko <[email protected]>

* fix comment intendation

* minor update of changelog entry

Co-authored-by: Illia Kovalenko <[email protected]>

* rename personalize scop environment variable

* add migration guide entry for page view tracking

* add migrate guide for cloud sdk init

* update changelog

* remove 'public' prefix of the personalize scope env variable

---------

Co-authored-by: Illia Kovalenko <[email protected]>
…eview mode (Sitecore#1961)

* modify cloudsk init component to not initialize cloudsk if in edit or preview mode or missing route data

* changelog update

* update migration entry for csdk initialization

* modify csdk initialization logic to run only once in the browser
* Upgrade cloudsdk to 0.4.0
* Remove context logic
* use @sitecore/components 2.0
…Sitecore#1962)

* [Chore] New Angular add-on's are not scaffolded within PR Build pipeline

* Updated CHANGELOG

* Updated utils
…sonalizeMiddlewareConfig (Sitecore#1963)

* pass setPersonalizeCookie by default in personalize-middleware
…de to v0.5.19. Updated @sitecore-cloudsdk to v0.4.1. (Sitecore#1966)

* [BYOC] Updated @sitecore-feaas/clientside to v0.5.19, passed rendering data to FEAAS.ExternalComponent

* Updated CloudSDK to 0.4.1

* Updated CHANGELOG

* Updated CHANGELOG

* Updated yarn.lock

* Updated @sitecore/components to ~2.0.1-alpha.1
illiakovalenko and others added 14 commits November 25, 2024 10:18
* [Chore] Post-typedoc-update doc update
* markdown plugin v3-like doc generation
* [create-sitecore-jss] Use version template token instead of exact version number

* Updated to use env variable

* Updated package.json import

* Updated CHANGELOG

* Don't expose canary build number

* Removing upgrade guides, updated readme links

* Updated CHANGELOG

* Revert yarn lock

* Updated package.json
@art-alexeyenko
Copy link
Contributor

@Elyseum thanks for the PR and sorry for the delay with feedback.
Do you think you'll be able to expand this over to vue sample too, for consistency? We can then merge it into jss proper.

addy-pathania and others added 9 commits November 29, 2024 04:56
…iring (Sitecore#1984)

* send info to cloudSdk when form is submitted

* update changelog

* remove extra dependency

* update yarn.lock

* add setup file explanation, update comments

* update config

---------

Co-authored-by: Addy Pathania <[email protected]>
…d] Updates for Angular XMC sample to work well with local containers and spa-starters monorepo in xmcloud-foundation (Sitecore#1983)

* updates to support work with local containers in xmcloud-foundation

* use fs for remove/copy dist folder in proxy build

* load bootstrap css fpr angular sxp only

* update changelog

* add clarifying comment
@Elyseum Elyseum marked this pull request as draft November 29, 2024 17:07
@Elyseum
Copy link
Contributor Author

Elyseum commented Nov 29, 2024

@Elyseum thanks for the PR and sorry for the delay with feedback. Do you think you'll be able to expand this over to vue sample too, for consistency? We can then merge it into jss proper.

@art-alexeyenko I messed up my branch in the process, so I started over in #1988. Sorry for that.

@Elyseum Elyseum closed this Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Issue/PR/discussion is reviewed and added to backlog for the further work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants